/**
 * Created by Administrator on 2017/12/5.
 */
var num;
var lastNum = 0;
var arr = new Array();
function toolbar_click(event) {
    var symbol;
    switch (event){
        case 'one':num = $("#one").val();
            break;
        case 'two':num = $("#two").val();
            break;
        case 'three':num = $("#three").val();
            break;
        case 'four':num = $("#four").val();
            break;
        case 'five':num = $("#five").val();
            break;
        case 'six':num = $("#six").val();
            break;
        case 'seven': num = $("#seven").val();
            break;
        case 'eight':num = $("#eight").val();
            break;
        case 'nine':num = $("#nine").val();
            break;
        case 'zero':num = $("#zero").val();
            break;
        case 'plus':symbol = $("#plus").val();
            break;
        case'minus':symbol = $("#minus").val();
            break;
        case'timesSign':symbol = $("#timesSign").val();
            break;
        case 'divisionSign':symbol = $("#divisionSign").val();
            break;
        case'equal':lastEqual();
            break;
        case'clear':alert("qingchu");
            break;
    }
}
function lastEqual() {
    alert(111);
    $("#result").val(lastNum);
}
// function toolbar_click(event){
//     console.log(event);
//     alert($(".zssbutton").val());
// }
// $(".zssbutton").click(function () {
//     alert($(this).val());
// });